//
//  TCTFormatter.swift
//  SwiftTestDemo
//
//  Created by John on 2018/5/22.
//  Copyright © 2018年 company. All rights reserved.
//

import UIKit
class TCTFormatter: NSObject {

    static let instance1 : TCTFormatter = TCTFormatter()
    
    class func sharedFormatter() -> TCTFormatter {
        
        return instance1
        
    }
    
    static let instance2 : DateFormatter = DateFormatter()
    
    class func sharedDateFormatter() -> DateFormatter {
        
        NSTimeZone.resetSystemTimeZone()
        
        instance2.timeZone = NSTimeZone.system
        
        instance2.locale = NSLocale(localeIdentifier:"zh_CN") as Locale!
        
        return instance2
        
    }
    
}
